clear
infix episode 2-5 type 7-7 ret2max 9-17 ret2end 19-27 xs2max 29-37 xs2end 39-47 pctbeg 49-56 pctmax 58-65 pctend 67-74 numshrt 76-78 using "e:\FIS_duration\rets_to_max_end_short_int_rep.txt"
log using "E:\FIS_duration\rets_to_max_shrt_int_rep.log"
summarize ret2max if ret2max >= -1
summarize xs2max if xs2max >= -1
summarize ret2end if ret2end >= -1
summarize xs2end if xs2end >= -1
summarize ret2max xs2max ret2end xs2end if ret2end >= -1 & ret2max >= -1
summarize ret2max if ret2max >= -1 & type == 1
summarize xs2max if xs2max >= -1 & type == 1
summarize ret2end if ret2end >= -1 & type == 1
summarize xs2end if xs2end >= -1 & type == 1
summarize ret2max if ret2max >= -1 & type == 2
summarize xs2max if xs2max >= -1 & type == 2
summarize ret2end if ret2end >= -1 & type == 2
summarize xs2end if xs2end >= -1 & type == 2
summarize ret2max if ret2max >= -1 & type == 3
summarize xs2max if xs2max >= -1 & type == 3
summarize ret2end if ret2end >= -1 & type == 3
summarize xs2end if xs2end >= -1 & type == 3
summarize pctbeg pctmax pctend
summarize pctbeg pctmax pctend if ret2max > -1 & ret2end > -1
summarize pctbeg pctmax pctend if type == 1
summarize pctbeg pctmax pctend if type == 2
summarize pctbeg pctmax pctend if type == 3
log close